package com.ruoyi.hotel.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 对象 dish_order
 * 
 * @author chen
 * @date 2022-05-03
 */
public class DishOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 房号 */
    @Excel(name = "房号")
    private String roomNum;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal totalPrice;

    /** 手机号 */
    @Excel(name = "手机号")
    private String photo;

    /** 关联id */
    @Excel(name = "关联id")
    private Long detailId;

    private List<DishesInfo> dishesInfo;

    public List<DishesInfo> getDishesInfo() {
        return dishesInfo;
    }

    public void setDishesInfo(List<DishesInfo> dishesInfo) {
        this.dishesInfo = dishesInfo;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoomNum(String roomNum) 
    {
        this.roomNum = roomNum;
    }

    public String getRoomNum() 
    {
        return roomNum;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomNum", getRoomNum())
            .append("state", getState())
            .append("totalPrice", getTotalPrice())
            .append("photo", getPhoto())
            .append("detailId", getDetailId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
